package com.wyl.condition.aggr;

import java.util.List;
import java.util.Set;

/**
 *
 * @author 吴宇亮 on 2023/4/21 16:27
 */
public class AggrCondition {

    /**
     * 要统计的对象，用于限制查询的表或索引
     */
    private Set<String> objectTypeUri;
    /**
     * 统计指标
     */
    private List<AggrProperty> indicators;
    /**
     * 汇聚类型
     */
    private AggrTypeEnum aggrType = AggrTypeEnum.TERMS;

    public Set<String> getObjectTypeUri() {
        return objectTypeUri;
    }

    public AggrCondition setObjectTypeUri(Set<String> objectTypeUri) {
        this.objectTypeUri = objectTypeUri;
        return this;
    }

    public List<AggrProperty> getIndicators() {
        return indicators;
    }

    public AggrCondition setIndicators(List<AggrProperty> indicators) {
        this.indicators = indicators;
        return this;
    }

    public AggrTypeEnum getAggrType() {
        return aggrType;
    }

    public AggrCondition setAggrType(AggrTypeEnum aggrType) {
        this.aggrType = aggrType;
        return this;
    }
}
